import { MockMethod } from 'vite-plugin-mock'
import { ResultEnum, ResponseEnum } from '@/enums/HttpEnums'
const BASE_URL = '/mock-api/system'
export default [
  {
    url: BASE_URL + '/user/getInfo',
    method: 'get',
    timeout: ResponseEnum.TIMEOUT,
    response: () => {
      return {
        code: ResultEnum.SUCCESS,
        data: {
          user: {
            tenantId: 0,
            version: 281,
            createBy: 1,
            createTime: '2023-06-03 21:32:28',
            updateBy: 1,
            updateTime: '2024-10-10 15:09:30',
            userId: 1,
            deptId: 1,
            userName: 'superadmin',
            nickName: '超级管理员',
            userType: 'sys_user',
            email: 'ec*@eco.com',
            phonenumber: '158****8888',
            gender: '1',
            avatar: null,
            url: null,
            status: '1',
            loginIp: '0:0:0:0:0:0:0:1',
            loginDate: '2024-10-10 15:09:30',
            remark: '管理员',
            dept: null,
            roles: [],
            roleIds: null,
            postIds: null,
            roleId: null
          },
          permissions: ['*:*:*'],
          roles: ['SuperAminRole']
        },
        msg: '操作成功'
      }
    }
  }
] as MockMethod[]
